Follows-up
485ff9ead94b by making the same change in DBConnectionError,
which overrides MWException::msg() to not use database messages.
Bug: 58447
Change-Id: Iafa9dd741f1f099a4a6cfb8cf655b7d5f504011a
* @return string Unprocessed plain error text with parameters replaced
*/
function msg( $key, $fallback /*[, params...] */ ) {
- global $wgLang;
-
$args = array_slice( func_get_args(), 2 );
if ( $this->useMessageCache() ) {
- $message = $wgLang->getMessage( $key );
+ return wfMessage( $key, $args )->useDatabase( false )->text();
} else {
- $message = $fallback;
+ return wfMsgReplaceArgs( $fallback, $args );
}
-
- return wfMsgReplaceArgs( $message, $args );
}
/**